<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增每日需求，每个渠道的每个游戏的每日新增、付费和留存要求')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-demands-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">渠道编号：</label>
				<div class="col-sm-8">
					<input id="channelId" name="channelId" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-3 control-label">新增数：</label>
				<div class="col-sm-8">
					<input id="registerNum" name="registerNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">留存数：</label>
				<div class="col-sm-8">
					<input id="loginNum" name="loginNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">留存天数：</label>
				<div class="col-sm-8">
					<input id="stayDays" name="stayDays" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">留存率：</label>
				<div class="col-sm-8">
					<input id="stayRate" name="stayRate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">付费数：</label>
				<div class="col-sm-8">
					<input id="chargeNum" name="chargeNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">付费金额：</label>
				<div class="col-sm-8">
					<input id="chargeFee" name="chargeFee" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/demands"
		$("#form-demands-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-demands-add').serialize());
	        }
	    }
	</script>
</body>
</html>
